<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/angular.min.js" type="text/javascript" charset="utf-8"></script>
		<script>
			var app = angular.module('myApp', []);

			app.controller('myCtrl', ["$scope", function($scope) {
				$scope.code = "黑马程序员";
			}]);
		</script>
	</head>

	<body>
		<div ng-app="myApp" ng-controller="myCtrl">

			<div>
				<input type="text" name="name" ng-model="code" />
			</div>
			<div>
				姓名:{{code}}
			</div>

		</div>

		
	</body>

</html>